package org.krayne.swivel.util;

import java.awt.Component;

/**
 * This class provides a set of static utility methods related to UI components.
 * 
 * @author dhsu
 */
public class ComponentUtil {

    /**
     * Refreshes and repaints the specified component.
     * 
     * @param component a component
     */
    public static void refreshComponent(Component component) {
        boolean wasVisible = component.isVisible();
        component.setVisible(false);
        component.setVisible(wasVisible);
    }
}
